home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / YLIB / ylib_0_10 / c / bug next >
Text File  |  1993-09-21  |  412b  |  21 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "math.h"
  4.  
  5. /* this is a neat bug in FPemulator 4.01
  6.    (it will disappear if you use the yLib) */
  7.  
  8.  
  9. int main(void)
  10. {double x,s,z;
  11.  for(z=0.0;z<=2.0;z+=0.02)
  12.    for(s=-20;s<1;s+=0.1)
  13.    {
  14.     if((z == 0.0) && (s <= 0.0)) break;
  15.     x=pow(z,s);
  16.     if((fabs(z-1) < 1.e-10) && (fabs(s) < 1.0e-10))
  17.          printf(" pow(%30.20g,%30.20g) = %g  ???? \n",z,s,x);
  18.    }
  19. }
  20.  
  21.